﻿// Example header text. Can be configured in the options.
using System;
using System.Windows.Forms;

namespace vtech_formBase.Object
{
    public partial class frmObject : Telerik.WinControls.UI.RadForm
    {
        public frmObject()
        {
            this.InitializeComponent();
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            try
            {
                switch (keyData)
                {
                    case Keys.Escape:
                        this.Close();
                        return true;
                    case Keys.F1:
                        vtech_frameWorks.Library.ClsUtilities.ShowHelp(this.Name);
                        return true;
                }
                return base.ProcessCmdKey(ref msg, keyData);
            }
            catch
            {
                return false;
            }
        }
    }
}